package com.qf.pojo;

import java.util.*;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public class User {

    public void init(){
        System.out.println("对象初始化");
    }

    public void destroy(){
        System.out.println("对象销毁");
    }

    public User() {
    }

    public User(Integer id, Integer age, boolean flag, Date birthday) {
        this.id = id;
        this.age = age;
        this.flag = flag;
        this.birthday = birthday;
    }

    private Integer id;
    private String sex;
    private Integer age;
    private boolean flag;

    private Date birthday;

    private String[] hobbys;
    private Set<String> phones;
    private List<String> names;

    public void setHobbys(String[] hobbys) {
        this.hobbys = hobbys;
    }

    public void setPhones(Set<String> phones) {
        this.phones = phones;
    }

    public void setNames(List<String> names) {
        this.names = names;
    }

    public void setCountries(Map<String, String> countries) {
        this.countries = countries;
    }

    public void setFiles(Properties files) {
        this.files = files;
    }

    private Map<String,String> countries;
    private Properties files;

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }


//    @Override
//    public String toString() {
//        return "User{" +
//                "id=" + id +
//                ", sex='" + sex + '\'' +
//                ", age=" + age +
//                ", flag=" + flag +
//                ", birthday=" + birthday +
//                ", hobbys=" + Arrays.toString(hobbys) +
//                ", phones=" + phones +
//                ", names=" + names +
//                ", countries=" + countries +
//                ", files=" + files +
//                '}';
//    }
}
